package com.example.lotterysystem.service;

import com.example.lotterysystem.controller.param.CreateActivityParam;
import com.example.lotterysystem.controller.param.PageParam;
import com.example.lotterysystem.service.dto.ActivityDTO;
import com.example.lotterysystem.service.dto.ActivityDetailDTO;
import com.example.lotterysystem.service.dto.CreateActivityDTO;
import com.example.lotterysystem.service.dto.PageListDTO;

public interface IActivityService {
    CreateActivityDTO createActivity(Integer createId,CreateActivityParam param);

    /**
     * 分页查询活动
     * @param param
     * @return
     */
    PageListDTO<ActivityDTO> selectActivityByPage(Integer userId,PageParam param);

    /**
     * 获取活动详细属性
     * @param activityId
     * @return
     */
    ActivityDetailDTO selectActivityDetail(Long activityId);

    /**
     * 缓存活动详细信息
     * @param activityId
     */
    void cacheActivity(Long activityId);
}
